package com.gitee.ykr.lightweight.rpc.monitor.warm;

import com.google.common.eventbus.EventBus;

/**
 * @author YKR
 * @Describe
 * @date 2021/8/24
 */
public class EventControllerImpl implements EventController {
    private EventBus eventBus;

    public EventControllerImpl(EventBus eventBus) {
        this.eventBus = eventBus;
    }

    @Override
    public void register(Object object) {
        eventBus.register(object);
    }

    @Override
    public void unregister(Object object) {
        eventBus.unregister(object);
    }

    @Override
    public void post(Event event) {
        eventBus.post(event);
    }


}
